@import '../mixin.scss';

@include namespace(button) {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #FFF;
    border: 1px solid #DCDFE6;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;

    &:active {
        color: #3a8ee6;
        border-color: #3a8ee6;
        outline: 0;
    }

    &--primary {
        color: white;
        background-color: #409eff;
        border-color: #409eff;

        &:hover,
        &:focus {
            background-color: #66b1ff;
            border-color: #66b1ff;
            color: #fff;
        }
    }

    &--danger {
        color: #FFF;
        background-color: #F56C6C;
        border-color: #F56C6C;

        &:hover,
        &:focus {
            background: #f78989;
            border-color: #f78989;
            color: #FFF;
        }
    }

    @include when(disabled) {
        color: #c0c4cc;
        cursor: not-allowed;
        background-image: none;
        background-color: #fff;
        border-color: #ebeef5;
    }

    @include when(round){
        border-radius: 20px;
        padding: 12px 23px;
    }
}